<?php


$themRoller = new admin_page_handler();
echo $themRoller->buildThemeRoller();
// link
$var = "testHome";
echo '<a href="server_side_communication_interface.php'
.'?action=' .$var
. '">Test Home Page</a>';
?>

		<script type="text/javascript" charset="utf-8">

          var selectedTheme = null;
                $(document).ready(function(){
        selectedTheme =  $("#themeSelector").val();
       $("#themeLoaderContainer").html(selectedTheme);
         $("#themeSelector").change(function(){
 selectedTheme =  $("#themeSelector").val();

 //$("#themeLoaderContainer").html(selectedTheme);


   sendRequest.setAction('viewSelectedTheme');
   jsonThemeParameters = {'selectedTheme': selectedTheme};
               sendRequest.setSendParameters(jsonThemeParameters);
               $('#themeLoaderContainer').load(sendRequest.serverURL, sendRequest.getSendData(), function(){


               });
         });

         $( "#selectTheme" ).button({
            icons: {
                primary: "ui-icon-gear",
                secondary:"ui-icon-gear"
            },
            text: true
        });


         $( "#selectTheme" ).click(function(){
         sendRequest.setAction('setSelectedTheme');
   jsonThemeParameters = {'selectedTheme': selectedTheme};
               sendRequest.setSendParameters(jsonThemeParameters);
               $('#themeLoaderContainer').load(sendRequest.serverURL, sendRequest.getSendData(), function(){

  window.location.href="http://localhost/stellogoogle/eventsmanager/";
               });
         });
$( "#datepicker" ).datepicker();

$( ".buttonViewer button:first" ).button({
            icons: {
                primary: "ui-icon-locked"
            },
            text: false
        }).next().button({
            icons: {
                primary: "ui-icon-locked"
            }
        }).next().button({
            icons: {
                primary: "ui-icon-gear",
                secondary: "ui-icon-triangle-1-s"
            }
        }).next().button({
            icons: {
                primary: "ui-icon-gear",
                secondary: "ui-icon-triangle-1-s"
            },
            text: false
        });

//coordinateFinder = new findCoordinatesFromBrowser();
//coordinateFinder.determineGeoLocationCoordinates();
			});
		</script>
